package officeboost.domain.equip_venue;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.persistence.*;

@Entity
public class Venue implements Serializable
{
    private String id;
    private String theUsage;
    private String tankage;
    private String state;
    private List<Reservation> reservations;

    @Id
    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }
    
    public String getTheUsage() {
	return theUsage;
    }

    public void setTheUsage(String theUsage) {
	this.theUsage = theUsage;
    }

    public String getTankage() {
        return tankage;
    }

    public void setTankage(String tankage) {
        this.tankage = tankage;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @OneToMany(cascade={CascadeType.ALL})
    @JoinColumn(name="VENUE_ID")
    public List<Reservation> getReservations() {
        return reservations;
    }

    public void setReservations(List<Reservation> reservations) {
        this.reservations = reservations;
    }
    
    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Venue other = (Venue) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + Objects.hashCode(this.id);
        return hash;
    }
    
    
    
}
